package com.tbit.main.service.impl;

import com.tbit.main.dao.core.WorkOrderConfigDao;
import com.tbit.main.pojo.WorkOrderConfig;
import com.tbit.main.service.WorkOrderConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LMY
 * @create 2021-08-23 11:25
 */
@Service("workOrderConfigService")
public class WorkOrderConfigServiceImpl implements WorkOrderConfigService {

    @Autowired
    private WorkOrderConfigDao workOrderConfigDao;

    @Override
    public WorkOrderConfig getByAccountId(Integer accountId) {
        return workOrderConfigDao.getByAccountId(accountId);
    }

    @Override
    public List<WorkOrderConfig> getByType(String typeSwitch) {
        return workOrderConfigDao.getByType(typeSwitch);
    }

    @Override
    public List<WorkOrderConfig> getAll() {
        return workOrderConfigDao.getAll();
    }

    @Override
    public void insert(WorkOrderConfig workOrderConfig) {
        workOrderConfigDao.insert(workOrderConfig);
    }

    @Override
    public void update(WorkOrderConfig workOrderConfig) {
        workOrderConfigDao.update(workOrderConfig);
    }
}
